package com.framework.admin.repository;

import com.framework.admin.model.SysUserDept;
import com.framework.common.repository.BaseJpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserDeptRepository extends BaseJpaRepository<SysUserDept, String> {
    void deleteByUserIdIn(List<String> userIds);

    List<SysUserDept> findByDeptId(String deptId);

    List<SysUserDept> findByUserId(String userId);
}
